package fleetAdmin;

public class MixedAircraft extends PassAircraft {
	
	//Default value declaration ...
	protected double freight = 2;
	
	//Empty constructor (loads default values)
	public MixedAircraft() { }
	
	//Constuctor for setting own values 
	public MixedAircraft(String make, String model, String registrationNumber,	int engines, int passengers, int freight) {
		//Call super constructor
		super(make, model, registrationNumber, engines, passengers);
		//Set the new freight parameter
		this.freight = freight;
	}
	
	//Override the super.toSring
	public String toString() {
		//use the Super;toSreing() and add to that the freight value
		return (super.toString() +"\t CARGO:"+freight);
	}
	
	
	//Setter for freight
	public void setFreight(double freight) {
		this.freight = freight;
	}
	
	//Getter for freight
	public double getFreight() {
		return freight;
	}

}
